package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;

import java.util.List;

public interface UserService {
    //查询所有用户
    List<User> findAll();

    //添加用户
    void save(User user);

    //分页查询
    PageInfo<User> findByPage(Integer pageNum, Integer pageSize);

    //根据id查询
    User findById(Integer id);

    //修改
    void update(User user);

    //根据id删除
    void delete(Integer id);
}
